class @SocialProfileModel extends Backbone.Model
    defaults:
        Login:''
        Email:''
        Avatar:''

    url:->
        url = SiteMap.Profile.SocialShow+"?login="+ @attributes.Login
        return url

    parse:(response)->
        attr={}
        attr.Login = response.Login
        attr.Email = response.Email
        if response.Avatar?
            attr.Avatar = "/myLibrary/Uploads/" + response.Avatar
        return attr